//
//  DataModel.m
//  __PRODUCTNAME__
//
//  Created by 黄威 on 16/08/27
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "DataModel.h"


@implementation DataModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"news_list"]) {
        NSMutableArray*listArray = [NSMutableArray array];
        
        NSArray *array = [NSArray array];
        array = value;
        
        
        
        for (NSDictionary *dic in array) {
            News_List *newslist = [News_List modelWithDic:dic];
            [listArray addObject:newslist];
        }
        _news_list = listArray;
    }
    
}


@end
